#pragma once
#include "EpilWhileStatementCode.h"
#include "EpilInterpreterBase.h"
#include "EpilChunkExitReason.h"


class EpilWhileStatementInterpreter : public EpilInterpreterBase
{
public:
	EpilWhileStatementInterpreter( EpilInterpreter * interpreter );

	EpilChunkExitReason					GetExitReason() const							{ return m_exitReason; }
	EpilLexLocation						GetExitLocation() const								{ return m_exitLocation; }

	void								Run( const EpilWhileStatementCode * code );

private:
	EpilChunkExitReason					m_exitReason;
	EpilLexLocation						m_exitLocation;
};